The "Class Scripts" folder contains script files. Each of these files handles the behavior of one object class of Smile. The "class script" property, owned by every object, refers to this script.
When an object has an non-empty object script, this script has automatically the class script of the object as its parent.
There is an inheritance mechanism on the object classes. For instance, "script window" is a sub-class of "text window", itself a sub-class of "window". The inheritance applies also to the class scripts : for instance, the class script of the "text window" class has as its parent the class script of the "window" class.
Through inheritance, every class is a sub-class of the same, virtual, basic class named "basic object". The class script of the "basic object" is "Context". In other terms, "Context" is a common parent to all object scripts.
The application itself is always there, thus its class script can be called from any script. To consult its routines, run :
• There are two special scripts, "Context" and "Globals". The properties of "Globals" are saved when you quit Smile.
The "context" and "globals" properties of Smile refer to these scripts.
• Class scripts can be used as libraries, where you will store handlers which will be available from any object of some given class. You can use the existing class scripts to store your personal handlers, if you know what you are doing. You can also create dynamically new classes, and attach class scripts to them. This is documented in Advanced script handling.